<template>
	<view style="background-color: #f8f8f8;height: 100vh;">
		<view class="fs30 mian">
			以下指导可否解决您的问题？
		</view>
		<view class=" mian dis_f aic jub" v-for="(item,index) in list" :key="index" @click="jump(item)">
			<view class="fs26">
				{{item.title}}
			</view>
			<image src="../../static/images/youj.png" mode="" class="jianmimg"></image>

		</view>

		<view class="title ">
			问题仍未解决？立即联系
			<!-- <a style="color: #2785fe;" :href="'tel:+'+kf_tel">客服留言</a> -->
			<text @click="liuyan(kf_tel)" style="color: #2785fe;">客服留言</text>
			>>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
				kf_tel: ""
			}
		},
		onLoad() {
			this.kf_tel = uni.getStorageSync('kf_tel')
			this.poatlist()
		},
		methods: {
			liuyan(kf_tel) {
				uni.makePhoneCall({
					phoneNumber: kf_tel,
					success: function() {
						console.log('拨打电话成功！');
					},
					fail: function() {
						console.log('拨打电话失败！');
					}
				});
			},
			poatlist() {
				this.api.post('login/kflst').then(res => {
					console.log(res);
					if (res.code == 200) {
						this.list = res.data
					}
				})
			},
			jump(item) {
				uni.navigateTo({
					url: '/pages/kefutext/kefutext?id=' + item.id
				})
			}
		}
	}
</script>

<style>
	.title {
		margin-left: 30rpx;
		margin-top: 50rpx;
		font-size: 40rpx;
	}

	.borbom {
		border-bottom: 1px solid #efefef;
	}

	.jianmimg {
		width: 15rpx;
		height: 25rpx;
	}

	.mian {
		background-color: #fff;
		padding: 15rpx 30rpx 25rpx;
	}
</style>